# Copyright (c) 2022, Fisher and contributors
# For license information, please see license.txt

import frappe
from frappe.model.document import Document

class ButtonCheck(Document):
	def after_insert(self):
		frappe.cache().delete_key("form_button_check_map")
	
	def on_update(self):
		frappe.cache().delete_key("form_button_check_map")

	def on_trash(self):	
		frappe.cache().delete_key("form_button_check_map")